import request from '@/utils/axios'

// 分页
export function recordPage(params: any) {
  return request.post({
    url: '/eprofile-web/api/patient/main/report/record/page',
    data: params
  })
}

// 详情
export function recordInfo(params: any) {
  return request.get({
    url: '/eprofile-web/api/patient/main/report/record/info',
    params: params
  })
}

// 修改
export function recordUpdate(params: any) {
  return request.post({
    url: '/eprofile-web/api/patient/main/report/record/update',
    data: params
  })
}

// 审核
export function recordReview(params: any) {
  return request.get({
    url: '/eprofile-web/api/patient/main/report/record/review',
    params: params
  })
}

// 体格检查  辅助检查  实验室检查
export function apppercdGetData(params: any) {
  return request.get({
    url: '/eprofile-web/api/apppercd/getData',
    params: params
  })
}

//获取一般检查体检记录趋势图
export function getRecord(params: any) {
  return request.get({
    url: '/eprofile-web/api/app/physicalExaminationRecord/getRecord',
    params: params
  })
}

//获取所见结论记录表
export function getWebRecord(params: any) {
  return request.get({
    url: '/eprofile-web/api/app/physicalExaminationRecord/getWebRecord',
    params: params
  })
}

//获取个人阳性异常信息列表
export function abnormalInfoByEmpiAndPeRecordId(params: any) {
  return request.get({
    url: '/eprofile-web/api/patient/main/report/record/abnormalInfoByEmpiAndPeRecordId',
    params: params
  })
}

//获取待审核异常结果列表
export function getAbnormalWaitApprovalList(params: any) {
  return request.get({
    url: '/eprofile-web/api/patient/main/report/record/getAbnormalWaitApprovalList',
    params: params
  })
}

//作废异常结果
export function delAbnormal(params: any) {
  return request.get({
    url: '/eprofile-web/api/patient/main/report/record/delAbnormal',
    params: params
  })
}

//全部异常标签
export function mainReportAbnormalLabelsurce(params: any) {
  return request.get({
    url: '/eprofile-web/api/patient/main/report/record/mainReportAbnormalLabelsurce',
    params: params
  })
}

//全部异常标签
export function auditAbnormal(params: any) {
  return request.post({
    url: '/eprofile-web/api/patient/main/report/record/auditAbnormal',
    data: params
  })
}

//获取项目列表
export function getReportItemList(params: any) {
  return request.get({
    url: '/eprofile-web/api/patient/main/report/record/getReportItemList',
    params: params
  })
}

//全部异常标签
export function getAbnormalWaitApprovalCount(params: any) {
  return request.get({
    url: '/eprofile-web/api/patient/main/report/record/getAbnormalWaitApprovalCount',
    params: params
  })
}

//全部异常标签
export function uploadAbnormal(params: any) {
  return request.post({
    url: '/eprofile-web/api/patient/main/report/record/uploadAbnormal',
    data: params
  })
}

//校验异常标签
export function auditAbnormalCheck(params: any) {
  return request.post({
    url: '/eprofile-web/api/patient/main/report/record/auditAbnormalCheck',
    data: params
  })
}
//检查 待生成 状态
export function auditAbnormalGenerated(params: any) {
  return request.get({
    url: '/eprofile-web/api/patient/main/report/record/auditAbnormalGenerated',
    params: params
  })
}
